<%--
  $Id: signUpForm.jsp 7 2013-03-04 05:52:15Z gabakyan@gmail.com $
  $Author: gabakyan@gmail.com $
  $Revision: 7 $
  $Date: 2013-03-04 05:52:15 +0000 (Mon, 04 Mar 2013) $

  Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
  http://www.scintelligence.com/, Email: info@scintelligence.com
  All rights reserved.

  This file is part of Logistics Map.

  Logistics Map is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, version 3 of the License.

  Logistics Map is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
--%>
<div class="sign-up-panel">
    <c:url var="signUpUrl" value="/sign-up"/>
    <form:form id="signUpForm" action="${signUpUrl}" method="post" modelAttribute="signUpCommand">
        <!--<div id="feedback"></div>-->
        <h4 class="form-signin-heading"><fmt:message key="forms.signInPage.signUpForm.header"/></h4>
        <div>
            <label for="username"><fmt:message key="forms.signInPage.signUpForm.label.username"/></label><span class="input"><%--<form:input path="username" />--%><spring:bind path="username"><input id="username" name="username" type="text" value="${status.value}" class="input-block-level" placeholder="<fmt:message key="forms.signInPage.signUpForm.placeholder.username"/>" required="required"/></spring:bind></span>
            <%--<form:errors path="username" cssClass="error" element="span" />--%>
        </div>
        <div>
            <label for="password"><fmt:message key="forms.signInPage.signUpForm.label.password"/></label><span class="input"><%--<form:password path="password" />--%><spring:bind path="password"><input id="password" name="password" type="password" value="${status.value}" class="input-block-level" placeholder="<fmt:message key="forms.signInPage.signUpForm.placeholder.password"/>" required="required"/></spring:bind></span>
            <%--<form:errors path="password" cssClass="error" element="span" />--%>
        </div>
        <div>
            <label for="firstName"><fmt:message key="forms.signInPage.signUpForm.label.firstName"/></label><span class="input"><%--<form:input path="firstName" />--%><spring:bind path="firstName"><input id="firstName" name="firstName" type="text" value="${status.value}" class="input-block-level" placeholder="<fmt:message key="forms.signInPage.signUpForm.placeholder.firstName"/>" required="required"/></spring:bind></span>
            <%--<form:errors path="firstName" cssClass="error" element="span" />--%>
        </div>
        <div>
            <label for="lastName"><fmt:message key="forms.signInPage.signUpForm.label.lastName"/></label><span class="input"><%--<form:input path="lastName" />--%><spring:bind path="lastName"><input id="lastName" name="lastName" type="text" value="${status.value}" class="input-block-level" placeholder="<fmt:message key="forms.signInPage.signUpForm.placeholder.lastName"/>" required="required"/></spring:bind></span>
            <%--<form:errors path="lastName" cssClass="error" element="span" />--%>
        </div>
        <div>
            <input class="btn btn-small btn-primary" type="submit" value="<fmt:message key='forms.signInPage.signUpForm.button.signUp'/>"/>
        </div>

        <div id="signUpFormFeedbackPanel" class="feedback-panel">
            <form:errors path="*" id="feedback-error" cssClass="error" element="div" />
        </div>
    </form:form>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        com.sci.logisticsmap.utilities.processFeedbackPanelAlert('signUpFormFeedbackPanel');
    });
</script>